<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFeedbookTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('feedbook', function (Blueprint $table) {
            $table->increments('id');
            $table->integer("uid")->default(0)->comment('用户ID');
            $table->string("image",150)->default('')->comment('图片');
            $table->string("message",255)->default('')->comment('留言内容');
            $table->string("reply",255)->default('')->comment('回复');
            $table->dateTime("reply_time")->default('0000-00-00 00:00:00')->comment('回复时间');
            $table->string("mobile",15)->default('')->comment("手机号");
            $table->string("app_platform",10)->default('')->comment('应用平台ios or android or wechat');
            $table->string("app_version",10)->default('')->comment('APP版本');
            $table->string("app_channel",30)->default('')->comment('应用市场');
            $table->string("app_name",20)->default('')->comment('app name');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('feedbook');
    }
}
